package com.snail.test.test;

import java.nio.file.Files;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.List;

/**
 * @author liwenbo
 * @version 1.0
 * @description: TODO
 * @date 2021/9/13 10:10 下午
 */

public class User {

    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void checkout(User user) {
        User user2 = new User();
        user2.setAge(1);
        user2.setName("1");
    }
    public static void main(String[] args) {
        EnumSet<Test> a = EnumSet.of(Test.A,Test.B);
        User user = new User();
        User user1 = new User();
        user1.checkout(user);
        System.out.println(user.getName());

        List<Integer> list = Arrays.asList(1,2,3,4,5,6,6);
        list.forEach(k -> {
            if(k == 3) {
                return;
            }
            System.out.println(k);
        });
    }
}
